/*
    Space Simulation - Simulate the solar system
    Copyright (C) 2010  Guillaume Andrieu and Sylvain Martin

    This file is part of Space Simulation.

    Space Simulation is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Space Simulation is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Space Simulation.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 /*
 *Physic.h est le fichier qui recense les en-tete des fonctions,
 *		
 *	gravity
 *	gravity_sum
 *	dynamic_calculation
 *
 */



#ifndef _IMA4_PHYSIC_H

#define _IMA4_PHYSIC_H 

#include "Particule.h"

/*
 *  Force que la particule par1 exerce SUR par2
 */

Vector3D gravity(Particule par1, Particule par2, double G);

/*
 * Calculs des forces appliquées à chaque particules générées par chaque interractions entre 
 * particules 
 */

void gravity_sum(Simulation * s);


/*
 * Calculs des données dynamiques des particules par applications des équation de mouvements
 */
void dynamic_calculation(Simulation * s, double newtime);


#endif
